package com.xxxx.service;

import com.xxxx.dao.UserMapper;
import com.xxxx.model.User;

import java.util.List;

public class UserServiceImp implements UserService {
   private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public User login(String id) {
       return userMapper.login(id);
    }

    public int addUser(User user) {
        return userMapper.addUser(user);
    }

    public List<String> allID() {
        return userMapper.allID();
    }
}
